'use client'
import { BreadcrumbItem, Breadcrumbs } from "@nextui-org/react";
import { usePathname } from "next/navigation";

export default function RootLayout({
    children,
    params: { lng }
}){
    const pathName = usePathname()
    console.log('pathName', pathName)
    let lastArg = pathName.split('/')[pathName.split('/').length - 1].split('?')[0]
    let argObj = {
        "comment": "评论榜",
        "rank":"排行榜"
    }
    return (
        <div className="more_container">
            <Breadcrumbs  variant="solid" className="mt-[39px] ml-[68px] mb-[69px]">
                <BreadcrumbItem>更多</BreadcrumbItem>
                <BreadcrumbItem>{argObj[lastArg]}</BreadcrumbItem>
            </Breadcrumbs>
            <div className="page_content">
                {children}
            </div>
        </div>
    )
}